package com.niit;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

public class HelloServtal extends HttpServlet {

    private String password = "123456";

    @Override
    protected void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {

        String name = "jinglei";
        System.out.println("name: " + name);
        System.out.println("password: " + password);

        resp.getWriter().write("password " + password);
    }
}